ASoC: bcm2835: Enforce full symmetry
authorMatthias Reichl <hias@horus.com>
Sun, 7 May 2017 14:24:57 +0000 (16:24 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:08:24 +0000 (01:08 +0000)
commit5784419938672a5a5901fcb5dfd23df9283da1ed
tree9a47e1acd2aecac43b7c84f6673f60becb705b99
parent3edb0c466b2d8362b4577d3e153e0125a3d9627b
ASoC: bcm2835: Enforce full symmetry

bcm2835's configuration registers can't be changed when a stream
is running, which means asymmetric configurations aren't supported.

Channel and rate symmetry are already enforced by constraints
but samplebits had been missed.

As hw_params doesn't check for symmetry constraints by itself
and just returns success if a stream is running this led to
situations where asymmetric configurations were seeming to
succeed but of course didn't work because the hardware wasn't
configured at all.

Fix this by adding the missing samplerate symmetry constraint.

Signed-off-by: Matthias Reichl <hias@horus.com>
sound/soc/bcm/bcm2835-i2s.c